package com.itheima.demo12课后作业;

import java.util.Date;

public class Employee {
    private int id;
    private String name;
    private String sex;
    private String position;
    private double salary;
    private Date join_date;
    private int dept_id;

    public Employee() {
    }

    public Employee(int id, String name, String sex, String position, double salary, Date join_date, int dept_id) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.position = position;
        this.salary = salary;
        this.join_date = join_date;
        this.dept_id = dept_id;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return sex
     */
    public String getSex() {
        return sex;
    }

    /**
     * 设置
     * @param sex
     */
    public void setSex(String sex) {
        this.sex = sex;
    }

    /**
     * 获取
     * @return position
     */
    public String getPosition() {
        return position;
    }

    /**
     * 设置
     * @param position
     */
    public void setPosition(String position) {
        this.position = position;
    }

    /**
     * 获取
     * @return salary
     */
    public double getSalary() {
        return salary;
    }

    /**
     * 设置
     * @param salary
     */
    public void setSalary(double salary) {
        this.salary = salary;
    }

    /**
     * 获取
     * @return join_date
     */
    public Date getJoin_date() {
        return join_date;
    }

    /**
     * 设置
     * @param join_date
     */
    public void setJoin_date(Date join_date) {
        this.join_date = join_date;
    }

    /**
     * 获取
     * @return dept_id
     */
    public int getDept_id() {
        return dept_id;
    }

    /**
     * 设置
     * @param dept_id
     */
    public void setDept_id(int dept_id) {
        this.dept_id = dept_id;
    }

    public String toString() {
        return "Employee{id = " + id + ", name = " + name + ", sex = " + sex + ", position = " + position + ", salary = " + salary + ", join_date = " + join_date + ", dept_id = " + dept_id + "}";
    }
}
